import Vuex from 'vuex'
import vue from 'vue'

vue.use(Vuex);


export default new Vuex.Store({
    state: {
        musicPlayer: wx.createInnerAudioContext()  //储存音乐媒体对象
    },
    mutations: {
        //设置播放器
        SET_MUSIC_PLAYER(state,media){
            state.musicPlayer = media;
        }
    }
})